package com.ocm.core.dto;

import com.googlecode.simpleobjectassembler.annotation.EntityDto;

@EntityDto(id = "id")
public class StorageDto {

   private Long id;

   private String name;

   private String displayName;

   private String storageURL;

   private String description;

   public StorageDto() {

   }

   public Long getId() {
      return id;
   }

   public void setId(Long id) {
      this.id = id;
   }

   public String getName() {
      return name;
   }

   public void setName(String name) {
      this.name = name;
   }

   public String getDisplayName() {
      return displayName;
   }

   public void setDisplayName(String displayName) {
      this.displayName = displayName;
   }

   public String getStorageURL() {
      return storageURL;
   }

   public void setStorageURL(String storageURL) {
      this.storageURL = storageURL;
   }

   public String getDescription() {
      return description;
   }

   public void setDescription(String description) {
      this.description = description;
   }

   @Override
   public boolean equals(Object obj) {
      StorageDto storageCompare = (StorageDto) obj;
      if (this.getId().longValue() == storageCompare.getId().longValue()) {
         return true;
      }
      return false;
   }
}
